package com.byxy.service.impl;

import com.byxy.mapper.CommentsMapper;
import com.byxy.po.Comments;
import com.byxy.service.CommentsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CommentsServiceImpl implements CommentsService<Comments> {


    @Resource
    private CommentsMapper commentsMapper;

    @Override
    public int deleteByPrimaryKey(Comments key) {
        return commentsMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(Comments record) {
        return commentsMapper.insert(record);
    }

    @Override
    public int insertSelective(Comments record) {
        return commentsMapper.insertSelective(record);
    }

    @Override
    public Comments selectOne(Comments record) {
        return commentsMapper.selectOne(record);
    }

    @Override
    public int updateByPrimaryKey(Comments record) {
        return commentsMapper.updateByPrimaryKey(record);
    }
}
